package com.ghy.service;

import com.ghy.dto.OrderDetailInsertDTO;
import com.ghy.dto.OrderDetailPageDTO;
import com.ghy.dto.OrderDetailUpdateDTO;
import com.ghy.entity.OrderDetail;

import com.ghy.excel.OrderDetailExcelDTO;
import com.ghy.vo.OrderDetailSimpleListVO;
import com.mybatisflex.core.paginate.Page;
import com.mybatisflex.core.service.IService;

import java.util.List;

/**
 * 订单明细表 服务层。
 *
 * @author ghy
 * @since 2024-12-22
 */
public interface OrderDetailService extends IService<OrderDetail> {

    boolean insert(OrderDetailInsertDTO dto);
    OrderDetail select(Long id);
    List<OrderDetailSimpleListVO> simpleList();
    Page<OrderDetail> page(OrderDetailPageDTO dto);
    boolean update(OrderDetailUpdateDTO dto);
    boolean delete(Long id);
    boolean deleteBatch(List<Long> ids);
    /**
     * 用户Excel记录
     *
     * @return 全查用户记录，Excel类型的数据
     */
    List<OrderDetailExcelDTO> excel();
}
